<!--<?php
if($action=='leaveword'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>楼主留言</th></tr>
	<tr><td width="20%" align="center">消息通知：</td><td><input type="radio" name="ifmsg" value="1" />是 <input type="radio" name="ifmsg" value="0" checked />否</td></tr>
	<tr><td align="center">留言内容：</td><td>
<!--
EOT;
if($db_adminreason){print <<<EOT
-->
		<select name="" style="width:70px" size="6" multiple onchange="this.form.atc_content.value=this.value">
			<option value="">自定义</option>
			<option value="">-------</option>
			$reason_sel
		</select>
<!--
EOT;
}print <<<EOT
-->
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:180px;height:92px">$rt[leaveword]</textarea>
	</td></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pid" value="$pid" />
<ul><li style="text-align:center;padding:4px 0 5px;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,worded);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='favor'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="150">
<tr><th class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span><span class="w">选择分类</span></th></tr>

<!--
EOT;
foreach($typeid as $key=>$value){
if ($key == '0') {
print <<<EOT
-->
<tr><td><a onclick="favor('0');" href="javascript:">默认分类</a></td></tr>
<!--
EOT;
} else {print <<<EOT
-->
<tr><td><a onclick="favor('$key');return false;" href="javascript:">$value</a></td></tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='relatetag'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>标签:$tagname</th></tr><tr><td>
	<ul>
<!--
EOT;
foreach($readdb as $key=>$value){print <<<EOT
-->
	<li style="height:25px;line-height:25px;overflow:hidden;"><a href="read.php?tid=$value[tid]" class="a6">$value[subject]</a></li>
<!--
EOT;
}print <<<EOT
-->
	<li><a class="fr a6" href="job.php?action=tag&tagname=$tagname">更多内容</a></li>
	</ul></td></tr>
</table>
<!--
EOT;
}elseif($action=='draft'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>草稿箱</th></tr>
<!--
EOT;
$i=($page-1)*$db_showperpage;
foreach($drdb as $key=>$value){
$i++;
print <<<EOT
-->
	<tr class="tr3 tac">
		<td width="5%">$i</td>
		<td class="tal"><textarea style="width:256px;height:35px; margin:.2em">{$value[content]}</textarea> <img style="cursor:pointer" src="$imgpath/post/c_editor/insert.gif" onclick="draft.insert(this)" alt="插入" /> <img style="cursor:pointer" src="$imgpath/post/c_editor/save.gif" onclick="draft.update(this,'$value[did]')" alt="保存" /> <img style="cursor:pointer" src="$imgpath/post/c_editor/del.gif" alt="删除" onclick="draft.del('$value[did]','$page')"/></td>
	</tr>
<!--
EOT;
}if($maxpage>1){print <<<EOT
-->
	<tr class="tr3"><td colspan="2">
<!--
EOT;
if($page>1){print <<<EOT
-->
	<a class="fl" style="cursor:pointer" onclick="draft.prev('$page');">上一页</a>
<!--
EOT;
}if($page<$maxpage){print <<<EOT
-->
	<a class="fr" style="cursor:pointer" onclick="draft.next('$page');">下一页</a>
<!--
EOT;
}print <<<EOT
-->
	</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}if($action=='login'){print <<<EOT
-->
<a href="u.php"><img src="$faceurl" onmouseout="clearTimeout(mt);read.close();"  onmouseover="mt=setTimeout('read.open(\'showface\',\'sf\',\'4\');',700);" style="float:left; margin-top:.4em;width:40px;height:40px;"/></a>

						<div style="padding:0 0 0 1em;margin:0 0 0 45px">
							<span id="sf" style="position:absolute; *margin:0 0 0 -.5em;"></span> <span class="user-infotwo" id="showface" style="display:none"> <span class="user-infoWraptwo"> <span class="co"></span>
							<a href="profile.php?action=modify&info_type=face">更换头像</a><br />
							UID: $winduid <br />
							$db_rvrcname: <span class="s2 f10">$userrvrc $db_rvrcunit</span><br />
							$db_moneyname: <span class="s3 f10">$winddb[money] $db_moneyunit</span><br />
							$db_creditname: <span class="s3 f10">$winddb[credit] $db_creditunit</span><br />
							<span class="gray f10"> 最后登录: {$lastlodate}<br />
							登录IP: $onlineip<br />
							</span> </span> </span>
						</div>
						<div style="margin-left:50px; line-height:180%">
						<div class="fl" style="width:100%">
							<div class="gray" style="float:left;clear:right"><span class="fl">等级:$gp_grouptitle, 帖子:$winddb[postnum], <a href="u.php?action=topic" class="link5">我的主题</a> <a href="u.php?action=post" class="link5">我的回复</a>&nbsp;</span><div class="fl" style="margin:.4em 1em 0 0"><a class="dropB" id="td_u">更多</a></div><span class="fl">
<!--
EOT;
if (SCR == 'index' && ($groupid == 3 || $groupid == 4)) {print <<<EOT
-->
								<a style="cursor:pointer" onclick="if (typeof MgMode == 'function') {mgm.showMenu();} else {loadjs('js/mgmode.js');}">可视化布局</a>
<!--
EOT;
}if($db_replysitemail && getstatus($winddb['userstatus'],6)){print <<<EOT
-->
							| <a id="newrp" onclick="sendmsg('pw_ajax.php','action=newrp',this.id)" style="cursor:pointer;" class="s3">您的文章有人回复</a>
<script language="JavaScript">
function newrp() {
	ajax.guide();
	ajax.send('pw_ajax.php','action=newrp',function(){
		if (ajax.request.responseText.indexOf('<') != -1) {
			read.menu.innerHTML = ajax.request.responseText;
		} else {
			closep();
			getObj('newrp').parentNode.removeChild(getObj('newrp'));
		}
	});
}
</script>
<!--
EOT;
}print <<<EOT
-->
							</span></div>
<!--
EOT;
if($_G[allowhonor]){print <<<EOT
-->						<div class="c"></div>
							<span id="honor">
<!--
EOT;
if($winddb['honor']){print <<<EOT
-->
									{$winddb[honor]}
<!--
EOT;
}else{print <<<EOT
-->
您还没有设置个性签名
<!--
EOT;
}print <<<EOT
-->
							</span>
							<a id="sethonor" onclick="sendmsg('pw_ajax.php','action=honor',this.id)" class="gray" style="cursor:pointer"><img src="$imgpath/$stylepath/infobox-edit.gif" />编辑</a>
							<div class="c"></div>
<script language="JavaScript">
function honor() {
	var str = ajax.request.responseText.split("\t");
	if (str[0] == 'success') {
		getObj('honor').innerHTML = '&nbsp;' + (str[1] ? str[1] : '您还没有设置个性签名') + '&nbsp;';
	} else {
		ajax.guide();
	}
}
</script>
<!--
EOT;
}print <<<EOT
-->

						</div></div>
	<split />
<!--
EOT;
if($groupid=='guest'){print <<<EOT
-->
							<a href="$loginurl" style="color:#c3e4f5">登录</a> &nbsp;<a href="$regurl" style="color:#c3e4f5">注册</a>
<!--
EOT;
}else{print <<<EOT
-->
							<a href="u.php" style="color:#fff; font-weight:700">$windid</a> <a id="td_msg" href="message.php">
<!--
EOT;
if($winddb[newpm]>0 && $_G[maxmsg]>0){print <<<EOT
-->
								<img src="$imgpath/$stylepath/meg.gif" align="absmiddle"/>
<!--
EOT;
} else {print <<<EOT
-->
								<img src="$imgpath/$stylepath/meg-read.gif" align="absmiddle"/>
<!--
EOT;
}print <<<EOT
-->
							</a>
							<a href="profile.php" style="color:#c3e4f5">设置</a> <a href="$loginouturl" style="color:#c3e4f5">退出</a>
<!--
EOT;
}print <<<EOT
-->
	<split />
	<li id="h_index"><a href="$db_bbsurl">讨论区</a></li>
<!--
EOT;
if($winduid){
if($db_menu%2 == 1){
print <<<EOT
-->
	<li id="h_profile"><a id="td_profile" style="cursor:pointer;" onMouseOver="read.open('menu_profile','td_profile');">用户中心$menu_down</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li id="h_profile"><a id="td_profile" href="profile.php">用户中心</a></li>
<!--
EOT;
}}if($_G[allowsort]){
if($db_menu%2 == 1){
print <<<EOT
-->
	<li id="h_sort"><a style="cursor:pointer;" id="td_sort" onMouseOver="read.open('menu_sort','td_sort');">统计排行$menu_down</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li id="h_sort"><a id="td_sort" href="sort.php">统计排行</a></li>
<!--
EOT;
}}if($_G[allowmember]){print <<<EOT
-->
	<li id="h_member"><a href="member.php">会员</a></li>
<!--
EOT;
}if($_G['show']){print <<<EOT
-->
	<li id="h_show"><a href="show.php">展区</a></li>
<!--
EOT;
}if($db_iftag){print <<<EOT
-->
	<li id="h_job"><a href="job.php?action=taglist">标签</a></li>
<!--
EOT;
}print <<<EOT
-->
	<li id="h_push"><a href="push.php?fid=$fid">推荐</a></li>
	<li id="h_search"><a href="search.php">搜索</a></li>
	<li id="h_hack"><a style="cursor:pointer;" id="td_hack" onMouseOver="read.open('menu_hack','td_hack');">社区服务$menu_down</a></li>
<!--
EOT;
foreach($db_hackdb as $key=>$hack){
if($hack[2]=='2' && file_exists(R_P."hack/$key/index.php")){print <<<EOT
-->
	<li><a href="hack.php?H_name=$hack[1]">$hack[0]</a></li>
<!--
EOT;
}}if($db_ifbookinfo){
$rawbbsname=rawurlencode($db_bbsname);
$rawbbsurl=rawurlencode($db_bbsurl);
$rawuser=rawurlencode($windid);
$pushurl="http://push.phpwind.net/book.php?tocharset=$db_charset&bbsname=$rawbbsname&bbsurl=$rawbbsurl&user=$rawuser";
if($tid){
$rawtitle=rawurlencode($subject);
print <<<EOT
-->
	<li><a href="$pushurl&tid=$tid&title=$rawtitle" target="_blank">订阅本帖更新</a></li>
<!--
EOT;
}elseif($fid){
$rawforumname=rawurlencode($forumname);
print <<<EOT
-->
	<li><a href="$pushurl&fid=$fid&forumname=$rawforumname" target="_blank">订阅本版更新</a></li>
<!--
EOT;
}else{print <<<EOT
-->
	<li><a href="$pushurl" target="_blank">订阅全站新帖</a></li>
<!--
EOT;
}}if(CkInArray($windid,$manager) || $SYSTEM['allowadmincp']){print <<<EOT
-->
	<li><a href="$db_adminfile" target="_blank">系统设置</a></li>
<!--
EOT;
}}elseif($action=='msg'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<table cellspacing="0" cellpadding="0" width="440">
	<tbody>
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>发送短消息</th></tr>
	<tr><td width="15%" align="center">用户：</td><td><input type="text" class="input" name="pwuser" value="$reinfo[username]" /></td></tr>
	<tr><td align="center">标题：</td><td><input type="text" class="input" name="msg_title" maxlength="100" size="50" value="$subject" /></td></tr>
<!--
EOT;
if($db_gdcheck & 8){print <<<EOT
-->
	<tr><td align="center">认证码：</td><td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="8" /></td></tr>
<!--
EOT;
}if($msgq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题：$db_question[$qkey] &nbsp;正确答案：{$db_answer[$qkey]}</td></tr>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容：</td><td><textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" rows="8" style="width:330px">$atc_content</textarea></td></tr>
	<tr><td colspan="2">保存到发件箱中：<input type="checkbox" name="ifsave" value="Y" /></td></tr>
	</tbody>
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
}elseif($action=='usetool'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>道具中心</th></tr>
<!--
EOT;
foreach($tooldb as $key=>$value){print <<<EOT
-->
<tr>
	<td><a style="cursor:pointer" onclick="usetool('{$value[0][id]}')" title="{$value[0][descrip]}">{$value[0][name]}({$value[0][nums]})</a></td>
	<td>
<!--
EOT;
if($value[1][name]){print <<<EOT
-->
		<a style="cursor:pointer" onclick="usetool('{$value[1][id]}')" title="{$value[1][descrip]}">{$value[1][name]}({$value[1][nums]})</a>
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='usertool'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>道具中心</th></tr>
<!--
EOT;
foreach($tooldb as $key=>$value){print <<<EOT
-->
<tr>
	<td><a style="cursor:pointer" onclick="usertool('$uid','{$value[0][id]}')" title="{$value[0][descrip]}">{$value[0][name]}({$value[0][nums]})</a></td>
	<td>
<!--
EOT;
if($value[1][name]){print <<<EOT
-->
		<a style="cursor:pointer" onclick="usertool('$uid','{$value[1][id]}')" title="{$value[1][descrip]}">{$value[1][name]}({$value[1][nums]})</a>
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='extend'){
if($type=='pwcode'){print <<<EOT
-->
<div style="padding:1px;">
<!--
EOT;
foreach($code as $key=>$value){print <<<EOT
-->
<span class="button" id="wy_$value[name]" title="$value[title]" onmouseover="this.className='button buttonHover'" onmouseout="this.className='button'" onmousedown="this.className='button buttonActive'" onclick="this.className='button';upcode(this.id,'$value[param]');"><img style="width:20px;height:20px" src="$imgpath/post/c_editor/$value[icon]" /><span style="display:none">$value[descrip]</span></span>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
}else{
if(!$setform){print <<<EOT
-->
<ul style="width:80px" class="tac f12">
<!--
EOT;
foreach($setformdb as $key=>$value){print <<<EOT
-->
<li><a href="javascript:onclick=showform('$value[id]')">$value[name]</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<!--
EOT;
}else{print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5" id="formstyle">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();read.obj=null;"><img src="$imgpath/close.gif" /></span>$setform[name]</th></tr>
<!--
EOT;
foreach($setform[value] as $k=>$v){print <<<EOT
-->
<tr><td align="center">$v[0]</td><td><!--
EOT;
if($v[1]){
$s=explode(',',$v[1]);
print <<<EOT
--><select><!--
EOT;
foreach($s as $k1=>$v1){print <<<EOT
--><option value="$v1">$v1</option><!--
EOT;
}print <<<EOT
--></select><!--
EOT;
}else{print <<<EOT
--><input type="text" class="input"/><!--
EOT;
}print <<<EOT
--></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" value="提 交" onclick="insertform('$setform[name]');" align="absmiddle"> <input type="button" class="btn" value="取消" onclick="closep();read.obj=null;"></li></ul>
<!--
EOT;
}}}elseif($action=='sharelink'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>友情链接申请</th></tr>
<tr><td width="24%" align="center">站点名称</td>
<td><input size="30" name="linkname" class="input" style="margin-top:6px;"></td></tr>
<tr><td align="center">站点URL</td>
<td><input size="30" name="linkurl" class="input"></td></tr>
<tr><td align="center">站点说明</td>
<td><input size="30" name="linkdescrip" class="input"></td></tr>
<tr><td align="center">站点LOGO</td>
<td><input size="30" name="linklogo" class="input"></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" onclick="ajax.submit(this.form);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='newrp'){print <<<EOT
-->
<table width="500" cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>回复提醒</th></tr>
<tr class="tr2 tac" >
	<td width="20%">版块名称</td>
	<td>标题</td>
	<td width="20%">回复时间</td>
	<td width="6%">删</td>
</tr>
<!--
EOT;
foreach($replydb as $key=>$val){print <<<EOT
-->
<tr class="tr3 tac">
	<td><a href="thread.php?fid=$val[fid]" target="_blank">$val[fname]</a></td>
	<td class="tal"><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></div></td>
	<td><a>$val[lastpost]</a></td>
	<td><img src="$imgpath/post/c_editor/del.gif" style="cursor:pointer" onclick="ajax.send('pw_ajax.php','action=delnewrp&tid=$val[tid]',newrp);" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='showface'){print <<<EOT
-->
<div style="width:272px;">
	<a class="fr" onclick="showSystemIcon($next_page);" style="cursor:pointer">下一页</a>
	<a onclick="showSystemIcon($pre_page);" style="cursor:pointer">上一页</a>
</div>
<div style="width:272px;">
<!--
EOT;
if (empty($imgname_array)) {print <<<EOT
-->
	<div style="width:272px;"><div class="tac p10">已是最后一页</div></div>
<!--
EOT;
} else {
foreach ($imgname_array as $key => $value) {print <<<EOT
-->	
	<span onClick="showimage('$imgpath','$value')" class="fl face">
		<img src='$imgpath/face/$value' width="50" height="50">
	</span>
<!--
EOT;
}
}print <<<EOT
-->
</div>
<!--
EOT;
}elseif($action=='modify'){print <<<EOT
-->
<form action="ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>编辑帖子 <span style="color:#FA891B">(按住Ctrl点击直接进入高级模式)</span></th></tr>
	<tr><td width="15%" align="center" style="padding:5px 0">作者:</td><td>$atcdb[author]</td></tr>
	<tr><td align="center">标题:</td><td><input class="input" type="text" name="atc_title" size="65" value="$atc_title" /></td></tr>
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
	<tbody><tr><td align="center">认证码：</td>
		<td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="6" tabindex="2" maxLength="4" /></td></tr></tbody>
<!--
EOT;
}if($winddb['postnum'] < $postq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tbody><tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题：$db_question[$qkey] &nbsp;正确答案：{$db_answer[$qkey]}</td></tr></tbody>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容：</td><td>
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:420px;height:135px">$atc_content</textarea>
	</td></td></tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="fid" value="$fid" />
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" value="1" name="atc_convert" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="bt" value="进入高级模式" onclick="window.location.href='post.php?action=modify&fid=$fid&tid=$tid&pid=$pid&article=$article'" /> <input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,edited);" value=" 提 交 " /></li></ul></form>
<!--
EOT;
}elseif($action=='quote'){print <<<EOT
-->
<div style="width:400px">
<form action="post.php?" method="post">
<input type="hidden" name="verify" value="$verifyhash" />
<table cellspacing="0" cellpadding="5" width="100%">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>编辑帖子 <span style="color:#FA891B">(按住Ctrl点击直接进入高级模式)</span></th></tr>
	<tr><td width="15%" align="center" style="padding:5px 0">标题：</td><td><input class="input" type="text" name="atc_title" value="$atc_title" size="60" /></td></tr>
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
	<tbody><tr><td align="center">认证码：</td>
		<td><img src="ck.php?nowtime=1" align="absmiddle" onclick="this.src='ck.php?nowtime=' + new Date().getTime();" style="cursor:pointer;" /><br /><input class="input" type="text" name="gdcode" size="6" tabindex="2" maxLength="4" /></td></tr></tbody>
<!--
EOT;
}if($winddb['postnum'] < $postq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tbody><tr><td align="center">验证问题：</td>
		<td><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /> 问题：$db_question[$qkey] &nbsp;正确答案：{$db_answer[$qkey]}</td></tr></tbody>
<!--
EOT;
}print <<<EOT
-->
	<tr><td align="center">内容：</td><td>
		<textarea name="atc_content" onkeydown="ajax.quickpost(event,this.form)" style="width:96%;height:135px">$atc_content</textarea>
	</td></td></tr>
</table>
<input type="hidden" value="2" name="step" />
<input type="hidden" value="$pid" name="pid" />
<input type="hidden" value="$action" name="action" />
<input type="hidden" value="$fid" name="fid" />
<input type="hidden" value="$tid" name="tid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" value="1" name="atc_usesign" />
<input type="hidden" value="1" name="atc_convert" />
<ul><li style="text-align:center;padding:4px 0;"><input type="submit" name="ajaxsubmit" class="btn" value=" 提 交 " /> <input onclick="window.location.href='post.php?action=quote&fid=$fid&tid=$tid&pid=$pid&article=$article&page=$page'" type="button" class="btn" value="进入高级模式" /></li></ul></form>
</div>
<!--
EOT;
}elseif($action=='honor'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="3" />
<table width="250" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>个性签名编辑</th></tr>
	<tr><td align="center"><textarea name="content" style="width:95%;height:60px">{$winddb[honor]}</textarea></td></tr>
</table><ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" onclick="ajax.submit(this.form,honor);" value=" 提 交 " /></li></ul></form>
<!--
EOT;
}elseif($action=='readlog'){print <<<EOT
-->
<table cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span><span class="w">最近浏览的帖子</span></th></tr>
<!--
EOT;
foreach($readb as $key=>$val){
$i=$key+1;
print <<<EOT
-->
<tr class="tr3 tac">
	<td>$i</td>
	<td class="tal"><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></div></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='threadlog'){print <<<EOT
-->
<table width="100%" cellspacing="0" cellpadding="5">
<tr><th colspan="4" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span><span class="w">最近浏览的版块</span></th></tr>
<!--
EOT;
foreach($threaddb as $key=>$value){print <<<EOT
-->
<tr><td><a href="thread.php?fid=$key">$value</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='mgmode'){print <<<EOT
-->
<div id="mgmode">
<div class="menu-post">
<div class="menu-b">
	<table width="100" cellspacing="0" cellpadding="0">
		<tr><th class="h"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>可视化布局</th></tr>
<!--
EOT;
if($rightset['setforum']){print <<<EOT
-->
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.forder();" title="可视化修改版块布局">版块排序</a></td></tr>
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.fsetname();" title="点击版块名称进行修改">版块名称修改</a></td></tr>
<!--
EOT;
}if($rightset['setstyles']){print <<<EOT
-->
		<tr><td><a style="cursor:pointer" onclick="mf = new mgm.style();" title="前台可视化修改风格">风格设置</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
</div>
</div>
<!--
EOT;
}elseif($action=='setstyle'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<table id="mgmode" width="100%" cellspacing="0" cellpadding="0">
	<tr><th class="h" colspan="3"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>风格设置</th></tr>
	<tr>
		<td valign="top">
			<table>
			<tr class="tr2">
				<td colspan="2" style="padding:0 1em"><b>整体风格设置</b><tr>
			</tr>
			<tr>
				<td width="50%" style="padding:0 1em">表格宽度</td>
				<td><input class="input" type="text" name="set[tablewidth]" value="$tablewidth" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">头部和尾部表格宽度</td>
				<td><input class="input" type="text" name="set[mtablewidth]" value="$mtablewidth" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">全局背景颜色</td>
				<td><input class="input" type="text" name="set[bgcolor]" value="$bgcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">全局链接颜色</td>
				<td><input class="input" type="text" name="set[linkcolor]" value="$linkcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格外边框颜色</td>
				<td><input class="input" type="text" name="set[tablecolor]" value="$tablecolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格内边框颜色</td>
				<td><input class="input" type="text" name="set[tdcolor]" value="$tdcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			</table>
		</td>
		<td colspan="2">
			<table>
			<tr class="tr2"><td colspan="2" style="padding:0 1em"><b>表格样式颜色设置</b></td></tr>
			<tr>
				<td style="padding:0 1em">表格标题栏颜色</td>
				<td><input class="input" type="text" name="set[headcolor]" value="$headcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格标题栏下边框颜色</td>
				<td><input class="input" type="text" name="set[headborder]" value="$headborder" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">标题栏主要字体链接颜色</td>
				<td><input class="input" type="text" name="set[headfontone]" value="$headfontone" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">标题栏次要字体链接颜色</td>
				<td><input class="input" type="text" name="set[headfonttwo]" value="$headfonttwo" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏颜色</td>
				<td><input class="input" type="text" name="set[cbgcolor]" value="$cbgcolor" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏下边框颜色</td>
				<td><input class="input" type="text" name="set[cbgborder]" value="$cbgborder" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">表格副标题栏字体颜色</td>
				<td><input class="input" type="text" name="set[cbgfont]" value="$cbgfont" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">论坛列表颜色一</td>
				<td><input class="input" type="text" name="set[forumcolorone]" value="$forumcolorone" onblur="mf.setcss(this);" /></td>
			</tr>
			<tr>
				<td style="padding:0 1em">论坛列表颜色二</td>
				<td><input class="input" type="text" name="set[forumcolortwo]" value="$forumcolortwo" onblur="mf.setcss(this);" /></td>
			</tr>
			</table>
		</td>
	</tr>
</table>
<input type="hidden" name="step" value="2" />
<input type="hidden" name="setskin" value="$skin" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form,mf.submit);" value="提 交" /></li></ul></form>
<!--
EOT;
}elseif($action=='addfriend'){print <<<EOT
-->
<form action="pw_ajax.php?action=$action" method="post" onsubmit="return false;">
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="job" value="add" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="touid" value="$friend[uid]" />
<table id="mgmode" width="100%" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>好友验证信息</th></tr>
	<tr class="tr3">
		<td width="25%">请输入验证信息</td>
		<td><input class="input" type="text" name="checkmsg" size="30" /></td>
	</tr>
</table>
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
}elseif ($action == 'pushto') {print<<<EOT
-->
	<table width="100%" cellspacing="0" cellpadding="5">
		<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>推送位置选择</th></tr>
<!--
EOT;
$id=0;
foreach ($pushs as $key => $value){
if($id == '0'){print<<<EOT
-->
<tr>
<!--
EOT;
}$id++;print<<<EOT
-->
		<td><a onclick="return sendurl(this,1,'push')" href="mawhole.php?action=push&pushto=$value[id]&fid=$fid&seltid=$seltid" >$value[name]</a></td>
<!--
EOT;
if($id == 2){$id=0;print<<<EOT
-->
</tr>
<!--
EOT;
}}print<<<EOT
-->
	</table>
<!--
EOT;
}elseif ($action == 'debate') {print<<<EOT
-->
<form action="pw_ajax.php?action=debate" method="post" onsubmit="return false;">
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>结束辩论，裁判点评</th></tr>
	<tr>
		<td>辩论结果：</td>
		<td>
<!--
EOT;
if($debate[judge]==1){print<<<EOT
-->
正方胜(支持数： $debate[obvote] 辩手：$debate[obposts])
<!--
EOT;
}elseif($debate[judge]==2){print<<<EOT
-->
平局
<!--
EOT;
}elseif($debate[judge]==3){print<<<EOT
-->
反方胜(支持数： $debate[revote] 辩手：$debate[reposts])
<!--
EOT;
}else{print<<<EOT
-->
			<input class="input" type="radio" name="judge" value="1" />正方胜(支持数：$debate[obvote]&nbsp;辩手：$debate[obposts])<br />
			<input class="input" type="radio" name="judge" value="2" checked/>平局<br />
			<input class="input" type="radio" name="judge" value="3" />反方胜(支持数：$debate[revote]&nbsp;辩手：$debate[reposts])
<!--
EOT;
}print<<<EOT
-->
		</td>
	</tr>
	<tr>
		<td>最佳辩手：</td>
		<td>
<!--
EOT;
if($debate[debater]){print<<<EOT
-->
			<a href="u.php?username=$debate[debater]" target="_blank">$debate[debater]</a>
<!--
EOT;
}else{print<<<EOT
-->
			<input class="input" id="debater" type="text" name="debater">
			<select onChange="if(this.value)getObj('debater').value=this.value;">
			<option value="">推荐辩手(支持数)</option>
<!--
EOT;
foreach($debater as $val){print<<<EOT
-->
			<option value="$val[username]">$val[username]($val[vote])</option>
<!--
EOT;
}print<<<EOT
-->
			</select>
<!--
EOT;
}print<<<EOT
-->
		</td>
	</tr>
	<tr>
		<td>裁判点评:</td>
		<td><textarea class="input" name="umpirepoint" rows="5" cols="40">$debate[umpirepoint]</textarea></td>
	</tr>
</table>
<input type="hidden" name="verify" value="$verifyhash" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="do" value="judge" />
<input type="hidden" name="tid" value="$tid" />
<ul><li style="text-align:center;padding:4px 0;"><input type="button" class="btn" name="ajaxsubmit" onclick="ajax.submit(this.form);" value="提 交" /></li></ul>
</form>
<!--
EOT;
} elseif ($action == 'readmessage') {print <<<EOT
-->
<table cellspacing="0" cellpadding="5" width="450px">
	<tbody>
	<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>
<!--
EOT;
if ($type == 'personal') {print <<<EOT
-->
	个人短消息
<!--
EOT;
} elseif ($type == 'system') {print <<<EOT
-->
	系统短消息
<!--
EOT;
} elseif ($type == 'public') {print <<<EOT
-->
	群发短消息
<!--
EOT;
}print <<<EOT
-->
	</th></tr>
	<tr><td width="20%">发件人：</td><td> $msginfo[username]</td></tr>
	<tr><td>标题：</td><td> $msginfo[title]</td></tr>
	<tr><td>时间：</td><td> $msginfo[mdate]</td></tr>
	<tr><td>内容：</td><td> $msginfo[content]</td></tr>
	<tr><td>选项： </td><td>
<!--
EOT;
if ($type == 'personal') {print <<<EOT
-->
	
	[<a href="message.php?action=chatlog&withuid=$msginfo[withuid]">通信记录</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=unread&mid=$msginfo[mid]')">标记未读</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=msg&remid=$msginfo[mid]')">回复</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=msg&transmit=$msginfo[mid]')">转发</a>]
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]
	
<!--
EOT;
} elseif ($type == 'system'){print <<<EOT
-->
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]
<!--
EOT;
} elseif ($type == 'public'){print <<<EOT
-->
	[<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=delmessage&type=$type&delid=$msginfo[mid]')">删除</a>]
<!--
EOT;
}print <<<EOT
-->
	</td></tr>
	</td></tr>
	</tbody>
</table>
<!--
EOT;
}?>
-->